package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2018-12-02
 */
@TableName("order_logistics")
public class OrderLogistics extends Model<OrderLogistics> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("logistics_no")
    private String logisticsNo;

    @TableField("logistics_batch")
    private Integer logisticsBatch;

    @TableField("order_id")
    private Long orderId;

    @TableField("order_no")
    private String orderNo;

    @TableField("refund_id")
    private Long refundId;

    @TableField("refund_no")
    private String refundNo;

    @TableField("logistics_enterprise_code")
    private String logisticsEnterpriseCode;

    @TableField("logistics_enterprise_name")
    private String logisticsEnterpriseName;

    @TableField("logistics_content")
    private String logisticsContent;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public OrderLogistics setId(Long id) {
        this.id = id;
        return this;
    }
    public String getLogisticsNo() {
        return logisticsNo;
    }

    public OrderLogistics setLogisticsNo(String logisticsNo) {
        this.logisticsNo = logisticsNo;
        return this;
    }
    public Integer getLogisticsBatch() {
        return logisticsBatch;
    }

    public OrderLogistics setLogisticsBatch(Integer logisticsBatch) {
        this.logisticsBatch = logisticsBatch;
        return this;
    }
    public Long getOrderId() {
        return orderId;
    }

    public OrderLogistics setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public OrderLogistics setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public Long getRefundId() {
        return refundId;
    }

    public OrderLogistics setRefundId(Long refundId) {
        this.refundId = refundId;
        return this;
    }
    public String getRefundNo() {
        return refundNo;
    }

    public OrderLogistics setRefundNo(String refundNo) {
        this.refundNo = refundNo;
        return this;
    }
    public String getLogisticsEnterpriseCode() {
        return logisticsEnterpriseCode;
    }

    public OrderLogistics setLogisticsEnterpriseCode(String logisticsEnterpriseCode) {
        this.logisticsEnterpriseCode = logisticsEnterpriseCode;
        return this;
    }
    public String getLogisticsEnterpriseName() {
        return logisticsEnterpriseName;
    }

    public OrderLogistics setLogisticsEnterpriseName(String logisticsEnterpriseName) {
        this.logisticsEnterpriseName = logisticsEnterpriseName;
        return this;
    }
    public String getLogisticsContent() {
        return logisticsContent;
    }

    public OrderLogistics setLogisticsContent(String logisticsContent) {
        this.logisticsContent = logisticsContent;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public OrderLogistics setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public OrderLogistics setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderLogistics{" +
        "id=" + id +
        ", logisticsNo=" + logisticsNo +
        ", logisticsBatch=" + logisticsBatch +
        ", orderId=" + orderId +
        ", orderNo=" + orderNo +
        ", refundId=" + refundId +
        ", refundNo=" + refundNo +
        ", logisticsEnterpriseCode=" + logisticsEnterpriseCode +
        ", logisticsEnterpriseName=" + logisticsEnterpriseName +
        ", logisticsContent=" + logisticsContent +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
